google.load("visualization", "1", {packages: ["gauge"]});
google.setOnLoadCallback(drawChartGAUGE);
function drawChartGAUGE() {

    var data = google.visualization.arrayToDataTable([
        ['Label', 'Value'],
        ['RAM', 0],
        ['CPU', 0]
    ]);

    var options = {
        width: 400, height: 400,
        redFrom: 90, redTo: 100,
        yellowFrom: 75, yellowTo: 90,
        minorTicks: 10
      
    };

    var chart = new google.visualization.Gauge(document.getElementById('div_cpu_ram_GAUGEchart'));

    chart.draw(data, options);

    setInterval(function() {
        
        
        data.setValue(0, 1, ram);
        chart.draw(data, options);
        data.setValue(1, 1, cpu);
        chart.draw(data, options);
    }, 1000);
}